<?php echo ( $success == '' ) ? '' : '<div class="infoMsg"><span class="success floatLeft" >
<img src="' . base_url() . '/public/images/success.png"/></span><strong>Alert: </strong>' . $success . '</div>'; ?>
<?php echo ( $warning == '' ) ? '' : '<div class="infoMsg"><span class="warning floatLeft" >
<img src="' . base_url() . '/public/images/warning.png"/></span><strong>Alert: </strong>' . $warning . '</div>'; ?>        
<?php echo ( $infoMsg == '' ) ? '' : '<div class="infoMsg"><span class="info floatLeft" >
<img src="' . base_url() . '/public/images/info.png"/></span><strong>Alert: </strong>' . $infoMsg . '</div>'; ?>
<?php echo ( $failed == '' ) ? '' : '<div class="failedMsg"><span class="denied floatLeft" >
<img src="' . base_url() . '/public/images/denied.png"/></span><strong>Alert: </strong>' . $failed . '</div>'; ?>
<script>
    $(document).ready(function(){
        $('.infoMsg span, .failedMsg span').each(function(){
            var e = $(this);
            var p = e.parent();
            var padding = parseInt(p.css('height'));
            e.css('padding-bottom', padding);
        });
		
        if( $.trim($('.content_title').text() == '') )
        {
            //$('.content_title').hide();
        }
    });
</script>
<?php
if (isset($header) && $header != '') {
    echo "<h1 id='page-heading'>" . $header . "</h1>";
}
?>
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
    <tr>
        <th rowspan="3" class="sized"><img src="<?php echo base_url(); ?>public/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
        <th class="topleft"></th>
        <td id="tbl-border-top">&nbsp;</td>
        <th class="topright"></th>
        <th rowspan="3" class="sized"><img src="<?php echo base_url(); ?>public/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
    </tr>
    <tr>
        <td id="tbl-border-left"></td>
        <td>
            <!--  start content-table-inner ...................................................................... START -->
            <div id="content-table-inner">

                <!--  start table-content  -->
                <div id="table-content">
<?php echo $this->view(@$content); ?>
                </div>
                <!--  end table-content  -->

                <div class="clear"></div>

            </div>
            <!--  end content-table-inner ............................................END  -->
        </td>
        <td id="tbl-border-right"></td>
    </tr>
    <tr>
        <th class="sized bottomleft"></th>
        <td id="tbl-border-bottom">&nbsp;</td>
        <th class="sized bottomright"></th>
    </tr>
</table>
<?php
/**
 * * clear session
 * */
clear_session(array('infoMsg', 'failed', 'success', 'warning'));
?>